package com.zzyl.controller.web;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.service.MemberService;
import com.zzyl.vo.MemberVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

//客户管理
@RestController
public class MemberController {

    @Resource
    private MemberService memberService;

    //分页查询客户信息
    @GetMapping("/c-user/page")
    public ResponseResult findByPage(Integer pageNum, Integer pageSize, String phone, String nickname) {
        PageResponse<MemberVo> pageResponse = memberService.findByPage(pageNum, pageSize, phone, nickname);
        return ResponseResult.success(pageResponse);
    }
}